package com.yangl.corejava.pattern.abstractfactory;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		HumanFactory maleFactory=new MaleHumanFactory();
		HumanFactory feMaleFactory=new FeMaleHumanFactory();
		Human maleYellowHuman=maleFactory.createYellowHuman();
		Human feMaleYellowHuman=feMaleFactory.createYellowHuman();
		maleYellowHuman.cry();
		feMaleYellowHuman.cry();
		maleYellowHuman.sex();
		feMaleYellowHuman.sex();
	}

}
